
// Article 文章实体
export interface Article {
    id?: number;
    title: string;
    category: string;
    content: string;
    summary: string;
    tagName: string;
    thumbnail?: string;
    isDraft: boolean;
    isTop: boolean;
    // isComment: boolean;
}
export interface ArticleView {
    id: number;
    title: string;
    summary: string;
    categoryName: string;
    thumbnail: string;
    createTime: string;
    viewCount: number;
}

export interface ArticleCount {
    article: number;
    category: number;
    tag: number;
}

export interface ArticleDetail {
    id: number;
    title: string;
    summary: string;
    category: string;
    content: string;
    categoryName: string;
    categoryId: number;
    thumbnail: string;
    isComment: boolean;
    tagName: string;
    viewCount: number;
    createTime: string;
}

export interface PreviousNextArticle {
    previous: ArticleView;
    next: ArticleView;
}

export interface QueryArticle {
    pageNum?: number;
    pageSize?: number;
    categoryId?: number;
    tagId?: number;
    date?: string;  //yyyy/MM
    status?: string; //0->已发布  1->草稿
}



